package com.yizhu.zczy.advertising.service.impl;

import com.yizhu.zczy.common.utils.PageUtils;
import com.yizhu.zczy.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.yizhu.zczy.advertising.dao.AdTypeDao;
import com.yizhu.zczy.advertising.entity.AdTypeEntity;
import com.yizhu.zczy.advertising.service.AdTypeService;


@Service
public class AdTypeServiceImpl extends ServiceImpl<AdTypeDao, AdTypeEntity> implements AdTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AdTypeEntity> page = this.page(
                new Query<AdTypeEntity>().getPage(params),
                new QueryWrapper<AdTypeEntity>()
        );

        return new PageUtils(page);
    }

}